package com.xzzz.backend.bsms.server.base.yuque.config;

import feign.RequestInterceptor;
import feign.RequestTemplate;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Configuration;


/**
 * 创建一个过滤器, 用于过滤 feign 调用, 如果通过 {@link Configuration} 注释, 那么会是全局的, 也可以通过 {@link FeignClient#configuration()}
 * 的配置类来导入
 *
 * @author xzzz
 */
@Slf4j
public class YuqueFeignInterceptor implements RequestInterceptor {

    @Override
    public void apply(RequestTemplate template) {
        log.debug("YuqueFeignInterceptor 拦截器执行");
    }
}